package com.kui.service;

import java.util.List;

import com.kui.dao.WenxianDao;
import com.kui.entity.Wenxian;

public class WenxianService {
	
	WenxianDao dao = new WenxianDao();

	public List<Wenxian> findAll() {
		return dao.findAll();
	}

	public void save(Wenxian w) {
		dao.save(w);
		
	}

	public Wenxian findById(String wid) {
		
		return dao.findById(wid);
	}

	public void update(Wenxian w, String wid) {
		dao.update(w,wid);
		
	}

	public void delById(String wid) {
		dao.del(wid);
		
	}

	public List<Wenxian> findByQikanId(String qid) {
		return dao.findByQikanId(qid);
		
	}

	public List<Wenxian> findByTypeId(String tid) {
		return dao.findByTypeId(tid);
	}

	public Wenxian findWenxianByDname(String dname) {
		return dao.findWenxianByDname(dname);
	}

	public List<Wenxian> findLikeName(String data) {
		return dao.findLikeName(data);
	}

	public List<Wenxian> findByLike(String data) {
		return dao.findByLike(data);
	}

	public List<Wenxian> findLikeQikan(String data) {
		return dao.findLikeQikan(data);
	}

	public List<Wenxian> findLikeType(String data) {
		return dao.findLikeType(data);
	}

	public List<Wenxian> findLikeId(String data) {
		return dao.findLikeId(data);
	}

	public List<Wenxian> findLike(String sb) {
		return dao.findLike(sb);
	}
	

}
